//
//  HelperView.m
//  CarWorld
//
//  Created by 李东方 on 15/3/28.
//  Copyright (c) 2015年 CarWorldTeam. All rights reserved.
//

#import "HelperView.h"
#import "WeatherModel.h"
@implementation HelperView




- (void)dealloc
{
    [_cityNameLable release];
    [_climaticLable release];
    [_tempLable release];
    [_header release];
    [super dealloc];
    
}

-(void)setHeader:(WeatherModel *)header
{
    if (_header !=header ) {
        
        [_header release];
        _header = [header retain];
        _cityNameLable.text = header.cityName;
        _climaticLable.text = header.climatic;
        _tempLable.text = header.temp;
        
    }
}

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _cityNameLable = [[UILabel alloc] initWithFrame:CGRectMake(80, 60, 200, 30)];
        [self addSubview:_cityNameLable];
        
        _climaticLable = [[UILabel alloc] initWithFrame:CGRectMake(80, 90, 50, 30)];
        [self addSubview:_climaticLable];

        _tempLable = [[UILabel alloc] initWithFrame:CGRectMake(150, 90, 200, 30)];
        [self addSubview:_tempLable];
     

        
        
        
        
        
        
        
        
        
        
    }
    return self;
}









/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
